// 1. 导入Vue 和Vuex
import Vue from 'vue'
import Vuex from 'vuex'

// 导入购物车模块
import moduleCart from '@/store/cart.js'

// 导入用户信息模块
import moduleUser from '@/store/user.js'


Vue.use(Vuex)

const store = new Vuex.Store({ 
  state: { count: 6 },
  mutations: {},
  modules: { 
    'm_cart': moduleCart,
    'm_user': moduleUser
  }
})

export default store